var secureStore;

function refreshParent() {
	window.opener.location.href = "GadgetRocketGoal.html";
	//window.opener.location.reload();

	//if (window.opener.progressWindow)

//	{
//		window.opener.progressWindow.close()
	//}
	window.close();
}


/*
 * This Method Load Secure Store so that we can access its getters setters
 */
function loadSWFStore() {
	secureStore = new SwfStore(
			{

				namespace : 'example7', // the this must match all other
										// instances that
				// want to share cookies

				swf_url : 'assets/flash/storage.swf', // to work cross-domain,
														// use the
				// same absolute url on both
				// pages (meaning
				// http://site.com/path/to/store.swf
				// not just /path/to.store.swf)

				debug : false, // depending on your browser, this will either
								// go to the
				// console or the bottom of the page.

				onready : function() {
					// now that the swfStore was loaded successfully, re-enable
					// everything
					// $('input').removeAttr("disabled");
					// $('#status').text('Loaded');
					if(onPersistantStoreLoaded){
						onPersistantStoreLoaded();
					}
				},

				onerror : function() {
					// in case we had an error. (The most common cause is that
					// the user
					// disabled flash cookies.)
					// $('#status').text('Error');
				}
			});

}

// wait until the page has finished loading before starting
$(function() {
	// first disable things while the swfStore is initializing
	// $('input').attr("disabled", "disabled");
	// $('#status').text('Loading...');
	loadSWFStore();
	
});

